import request from '@/utils/request'
// 查询年剂量任务分页列表
export function getAnnualDoseInfo(params) {
  return request({
    url: `/task/annualDose/getAnnualDoseInfo`,
    method: "get",
    params,
  });
}
// 年度个人剂量详情列表
export function getAnnualDoseInfoRecords(params) {
  return request({
    url: `/task/annualDose/getAnnualDoseInfoRecords`,
    method: "get",
    params,
  });
}
// 根据id获取年剂量任务详细信息
export function getAnnualDoseInfoById(id) {
  return request({
    url: `/task/annualDose/`+id,
    method: "get",
  });
}
// 根据id获取年剂量任务详情的分页列表
export function record(params) {
  return request({
    url: `/task/annualDose/record`,
    method: "get",
    params
  });
}
// 新增年剂量任务
export function addTask(data) {
  return request({
    url: `/task/annualDose/add`,
    method: "post",
    data,
  });
}
// 生成原始记录
export function handleRecord(id) {
  return request({
    url: `/task/annualDose/genRecordReport/`+id,
    method: "get",
    headers: {
    	isLoading: true,
    }
  });
}
// 生成检测报告
export function handleReport(id) {
  return request({
    url: `/task/annualDose/genTestReport/`+id,
    method: "get",
    headers: {
    	isLoading: true,
    }
  });
}
// 生成年度报告
export function handleYearReport(data) {
  return request({
    url: `/task/annualDose/genStatisticsReport?id=${data.id}`,
    method: "post",
    headers: {
    	isLoading: true,
    }
  });
}
// 任务办理
export function handle(data) {
  return request({
    url: `/task/annualDose/handle`,
    method: "post",
    data
  });
}
// 年剂量四个季度都有数据
export function getAnnualDoseInfoList(params) {
  return request({
    url: `/task/annualDose/getAnnualDoseInfoList`,
    method: "get",
    params
  });
}

// 年剂量四个季度都有数据
export function annualAddBatch(data) {
  return request({
    url: `/task/annualDose/addBatch`,
    method: "post",
    data
  });
}

// 年剂量也要加是否打印
export function annualDosePrintReport(params) {
  return request({
    url: `/task/annualDose/printReport`,
    method: "get",
    params
  });
}
